<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Form Wizard - Ace Admin</title>

		<meta name="description" content="and Validation" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!--basic styles-->

		<link href="Public/Admin/css/bootstrap.min.css" rel="stylesheet" />
		<link href="Public/Admin/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="Public/Admin/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="Public/Admin/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!--page specific plugin styles-->

		<link rel="stylesheet" href="Public/Admin/css/select2.css" />

		<!--ace styles-->

		<link rel="stylesheet" href="Public/Admin/css/ace.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="Public/Admin/css/ace-ie.min.css" />
		<![endif]-->

		<!--inline styles related to this page-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
	<style type="text/css">
		#page li{
			list-style: none;
			float: left;
			/*width: 20px;*/
			height: 20px;
			padding: 0 5px;
			margin: 0 5px;
			border: 1px solid #005580;
		}
	</style>
	<body>
		
				<div class="page-content">
					<div class="page-header position-relative">
						<h1>
							类型管理
							<small>
								<i class="icon-double-angle-right"></i>
								类型列表
							</small>
						</h1>
					</div><!--/.page-header-->
<div class="row-fluid">
						<div class="span12">
							<!--PAGE CONTENT BEGINS-->

							<div class="row-fluid">
								<div class="span12">
									<table id="sample-table-1" class="table table-striped table-bordered table-hover">
										<thead>
											<tr>
												<th class="center" width="50">
													类型ID
												</th>
												<th width="200">类型名称</th>
												<th class="hidden-480" >类型说明</th>

												<th class="hidden-phone" width="100">
													<i class="icon-time bigger-110 hidden-phone"></i>
													添加时间
												</th>
												<th width="200">分类操作</th>
											</tr>
										</thead>

										<tbody>
											{{foreach from="$typeData" value = "$v"}}
											<tr>
												<td class="center">
													{{$v['tid']}}
												</td>

												<td>
													<a href="#">{{$v['tname']}}</a>
												</td>
												<td class="hidden-480">{{$v['state']}}</td>
												<td class="hidden-phone">{{date('Y-m-d',$v['addtime'])}}</td>

												<td>
													<div class="btn-group">
														
														<a href="{{U('Attr/index',array('tid'=>$v['tid']))}}" class="btn btn-mini btn-success">
															<i class="icon-th-list bigger-120"></i>属性列表
														</a>
														
														<a href="{{U('type/edit',array('tid'=>$v['tid']))}}" class="btn btn-mini btn-info">
															<i class="icon-edit bigger-120"></i>修改
														</a>

														<a href="javascript: if(confirm('您确定删除吗？')) location.href='{{U('type/del',array('tid'=>$v['tid']))}}'" class="btn btn-mini btn-danger">
															<i class="icon-trash bigger-120"></i>删除
														</a>
													</div>

												</td>
											</tr>
											{{endforeach}}
										</tbody>
									</table>
									<ul id="page">
										{{$page}}
									</ul>
								</div>
							</div>
				</div><!--/.page-content-->

			</div><!--/.main-content-->
		</div><!--/.main-container-->

	</body>
</html>
